﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Monopoly.Domain
{
    public abstract class Card
    {
        private static short Identity = 1;
        private short Id;
        private string Text;
        private CardActionType Action;
        private int Value;

        public Card()
            : base()
        {
            this.Id = Identity++;
        }

        public Card(string Text, CardActionType Action)
            : this()
        {
            this.Text = Text;
            this.Action = Action;
        }

        public Card(string Text, CardActionType Action, int Value)
            : this(Text, Action)
        {
            this.Value = Value;
        }

        public static void ReinitializeIdentity()
        {
            Identity = 1;
        }

        public string GetText()
        {
            return this.Text;
        }

        public int GetValue()
        {
            return this.Value;
        }

        public CardActionType GetCardActionType()
        {
            return this.Action;
        }
    }
}
